package com.earthea.scaffold.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum CommonStatusEnum implements SelectEnum<Integer> {
    NORMAL("正常", 0),
    DISABLED("停用", 1),
    ;

    private final String label;
    @EnumValue
    @JsonValue
    private final int value;

    CommonStatusEnum(String label, int value) {
        this.label = label;
        this.value = value;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
